package conf

import "errors"

const ErrorDatabaseFailToLink = "数据库连接失败！"
const ErrorDatabaseQuery = "数据库返回为空！"
const ErrorDatabaseUpdate = "数据库修改异常！"
const ErrorDatabaseNotExists = "数据不存在！"

const ErrorEmergencyPostFix = "请及时关注！"
const ErrorEmergencyHR = "心率异常，请及时关注！"
const ErrorEmergencyBP = "血压异常，请及时关注！"
const ErrorEmergencyBreathe = "呼吸指标异常，请及时关注！"

var String2Error = map[string]error{
	ErrorDatabaseQuery:      errors.New(ErrorDatabaseQuery),
	ErrorDatabaseUpdate:     errors.New(ErrorDatabaseUpdate),
	ErrorDatabaseFailToLink: errors.New(ErrorDatabaseFailToLink),
	ErrorEmergencyHR:        errors.New(ErrorEmergencyHR),
	ErrorEmergencyBP:        errors.New(ErrorEmergencyBP),
	ErrorEmergencyBreathe:   errors.New(ErrorEmergencyBreathe),
}
